<template>
	<view class="homeBox">
		<view class="homeComtnt">
			<view class="homeTitle">
				<text>首页</text>
			</view>
			<view class="homeNavi">
				<view class="naviNumberBox" v-for="(item,index) in naviTile" :key="index">
					<view class="numberBox" >
						<view class="number">
							<text>{{item.nuber}}</text>
							<text>单</text>
						</view>
						<view class="numberTitle">
							<text>{{item.title}}</text>
						</view>
					</view>
				</view>
				<!-- 导航 -->
				<view class="Navi">
					<view class="NaviComtent">
						<view class="intoNavi" v-for="(it, idx) in naviInto" :key="idx">
							<view class="intoIcoTitle" v-for="(content,uid) in it" :key="uid">
								<view class="intoIco intoBack" :style="{'background-color': content.color}">
									<u-icon :name="content.ico" color="#fff" size="38rpx"></u-icon>
								</view>
								<view class="intoTitle">
									<text>{{content.title}}</text>
								</view>
							</view>
						</view>
					</view>
					
				</view>
			</view>
			<data-box></data-box>
		</view>
	</view>
</template>

<script>
	import dataBox from "@/components/dataBox/dataBox.vue"
	export default {
		components:{dataBox},
		data() {
			return {
				naviTile:[],
				naviInto:[]
			};
		},

		onLoad() {
			this.naviTile=this.$store.state.order.naviTile
			this.naviInto=this.$store.state.order.naviInto
			
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.homeBox {
		height: calc(100vh - 80rpx);
		width: 100%;
		background-color: #fff2e6;
		backdrop-filter: blur(10rpx);

		.homeComtnt {
			width: 92%;
			margin: 0 4%;

			.homeTitle {
				padding-top: 110rpx;
				font-weight: bold;
				color: #333;
			}

			.homeNavi {
				display: flex;
				justify-content: space-between;
				margin-top: 40rpx;
				border-radius: 16rpx;
				height: 200rpx;
				background-color: #55aaff;
				font-size: 30rpx;
				align-items: center;
				color: #fff;
				position: relative;

				.numberBox {
					margin: 0 40rpx;
					
					justify-content: space-between;

					.number {
						text:nth-child(2) {
							font-size: 20rpx;
						}
					}

					.numberTitle {
						margin-top: 20rpx;
						color: #dfdfdf;
						text-align: center;
						font-size: 24rpx;
					}
				}

				// 导航
				.Navi {
					position: absolute;
					width: calc(100% + 20rpx);
					height: 300rpx;
					background-color: #ffffff;
					top: 160rpx;
					left: -10rpx;
					border-radius: 16rpx;
					opacity: 0.95;
					.NaviComtent{
						color: #333;
						.intoNavi{
							display: flex;
							.intoIcoTitle{
								width: 100rpx;
								height: 110rpx;
								margin: 20rpx;
								display: flex;
								flex-direction: column;
								align-items: center;
								
								.intoIco{
									width: 70rpx;
									height: 70rpx;
									display: flex;
									justify-content: center;
									align-items: center;
									border-radius: 100%;
								}
								
								.intoTitle{
									margin-top: 10rpx;
								}
							}
						}
					}
				}
			}
		}
	}
</style>
